blob: e67d02f809f5446f0efc3644d17220a699d6a648 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
.PHONY: clean
C_RPM = 1
C_DRAKX = 1
MYENV = C_RPM=$(C_RPM) C_DRAKX=$(C_DRAKX)
MAKEIT = $(MYENV) $(MAKE) -f Makefile_c LD_RUN_PATH=
stuff: %: %.xs
test -e Makefile_c || $(MYENV) perl Makefile.PL
$(MAKEIT) || $(MAKEIT)
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 pcmcia_probe.c
stuff.xs: %: %.pl
rm -f $@
C_RPM=$(C_RPM) C_DRAKX=$(C_DRAKX) perl $< > $@
chmod a-w $@
|