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

C_RPM = 1
C_DRAKX = 1

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

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

stuff.xs: %: %.pm
	rm -f $@
	C_RPM=$(C_RPM) C_DRAKX=$(C_DRAKX) perl $< > $@
	chmod a-w $@