summaryrefslogtreecommitdiffstats
path: root/perl-install/c/Makefile
blob: dcd777bb764b5d3a68718f0eb873a7088fbcfd12 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
.PHONY: clean

stuff: %: %.xs
	test -e Makefile_c || C_RPM=1 perl Makefile.PL
	$(MAKE) -f Makefile_c
	ln -sf ../c/blib/arch/auto ../auto/c

clean:
	test ! -e Makefile_c || $(MAKE) -f Makefile_c clean
	rm -f *~ stuff.xs

stuff.xs: %: %.pm
	rm -f $@
	export C_RPM=1 ; perl $< > $@
	chmod a-w $@