Workshop o mikrokontrolérech na SKSP 2024.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

31 lines
1.2 KiB

# Makefile for the Filelock Perl module (c) 2007 Pavel Chrvat <pchar@ucw.cz>
DIRS+=ucw/perl/Filelock/arch/auto/UCW/Filelock
FILELOCK_DIR=ucw/perl/Filelock
PROGS+=$(o)/ucw/perl/Filelock/Filelock.pm
extras:: $(o)/ucw/perl/Filelock/arch/auto/UCW/Filelock/Filelock.$(SOEXT)
$(o)/ucw/perl/Filelock/arch/auto/UCW/Filelock/Filelock.$(SOEXT): $(o)/$(FILELOCK_DIR)/Filelock.xs $(o)/$(FILELOCK_DIR)/Filelock.pm $(o)/$(FILELOCK_DIR)/Makefile
$(M)MAKE $@
$(Q)cd $(o)/$(FILELOCK_DIR) && $(MAKE) -f Makefile $(MAKESILENT)
$(Q)touch $@
$(Q)cp $@ run/$(DATADIR)/
$(o)/$(FILELOCK_DIR)/Makefile: $(o)/$(FILELOCK_DIR)/Makefile.PL
$(M)PREPARE $@
$(Q)cd $(o)/$(FILELOCK_DIR) && perl Makefile.PL
$(o)/$(FILELOCK_DIR)/Filelock.xs: $(s)/$(FILELOCK_DIR)/Filelock.xs
$(Q)cp $^ $@
$(o)/$(FILELOCK_DIR)/Makefile.PL: $(s)/$(FILELOCK_DIR)/Makefile.PL
$(Q)cp $^ $@
UCW_PERL_INSTALL+=install-perl-ucw-filelock
install-perl-ucw-filelock:
install -d -m 755 $(DESTDIR)$(INSTALL_PERL_ARCH_DIR)/UCW/ $(DESTDIR)$(INSTALL_PERL_ARCH_DIR)/auto/UCW/
install -m 644 $(s)/$(FILELOCK_DIR)/Filelock.pm $(DESTDIR)$(INSTALL_PERL_ARCH_DIR)/UCW/
install -m 644 $(o)/ucw/perl/Filelock/arch/auto/UCW/Filelock/Filelock.$(SOEXT) $(DESTDIR)$(INSTALL_PERL_ARCH_DIR)/auto/UCW/
.PHONY: install-perl-ucw-filelock