1 # Makefile for the Filelock Perl module (c) 2007 Pavel Chrvat <pchar@ucw.cz>
3 DIRS+=lib/perl/Filelock/arch/auto/UCW/Filelock
4 FILELOCK_DIR=lib/perl/Filelock
6 PROGS+=$(o)/lib/perl/Filelock/Filelock.pm
8 extras:: $(o)/lib/perl/Filelock/arch/auto/UCW/Filelock/Filelock.$(SOEXT)
10 $(o)/lib/perl/Filelock/arch/auto/UCW/Filelock/Filelock.$(SOEXT): $(o)/$(FILELOCK_DIR)/Filelock.xs $(o)/$(FILELOCK_DIR)/Filelock.pm $(o)/$(FILELOCK_DIR)/Makefile
12 $(Q)cd $(o)/$(FILELOCK_DIR) && $(MAKE) -f Makefile $(MAKESILENT)
14 $(Q)cp $@ run/$(DATADIR)/
16 $(o)/$(FILELOCK_DIR)/Makefile: $(o)/$(FILELOCK_DIR)/Makefile.PL
18 $(Q)cd $(o)/$(FILELOCK_DIR) && perl Makefile.PL
20 $(o)/$(FILELOCK_DIR)/Filelock.xs: $(s)/$(FILELOCK_DIR)/Filelock.xs
23 $(o)/$(FILELOCK_DIR)/Makefile.PL: $(s)/$(FILELOCK_DIR)/Makefile.PL