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.

32 lines
1.2 KiB

3 months ago
# Makefile for the Ulimit Perl module (c) 2003 Tomas Valla <tom@ucw.cz>
DIRS+=ucw/perl/Ulimit/arch/auto/UCW/Ulimit
ULIMIT_DIR=ucw/perl/Ulimit
PROGS+=$(o)/ucw/perl/Ulimit/Ulimit.pm
extras:: $(o)/ucw/perl/Ulimit/arch/auto/UCW/Ulimit/Ulimit.$(SOEXT)
$(o)/ucw/perl/Ulimit/arch/auto/UCW/Ulimit/Ulimit.$(SOEXT): $(o)/$(ULIMIT_DIR)/Ulimit.xs $(o)/$(ULIMIT_DIR)/Ulimit.pm $(o)/$(ULIMIT_DIR)/Makefile
$(M)MAKE $@
$(Q)cd $(o)/$(ULIMIT_DIR) && $(MAKE) -f Makefile $(MAKESILENT)
$(Q)touch $@
$(Q)cp $@ run/$(DATADIR)/
$(o)/$(ULIMIT_DIR)/Makefile: $(o)/$(ULIMIT_DIR)/Makefile.PL
$(M)PREPARE $@
$(Q)cd $(o)/$(ULIMIT_DIR) && perl Makefile.PL
$(o)/$(ULIMIT_DIR)/Ulimit.xs: $(s)/$(ULIMIT_DIR)/Ulimit.xs
$(Q)cp $^ $@
$(o)/$(ULIMIT_DIR)/Makefile.PL: $(s)/$(ULIMIT_DIR)/Makefile.PL
$(Q)cp $^ $@
UCW_PERL_INSTALL+=install-perl-ucw-ulimit
install-perl-ucw-ulimit:
install -d -m 755 $(DESTDIR)$(INSTALL_PERL_ARCH_DIR)/UCW/ $(DESTDIR)$(INSTALL_PERL_ARCH_DIR)/auto/UCW/
install -m 644 $(s)/$(ULIMIT_DIR)/Ulimit.pm $(DESTDIR)$(INSTALL_PERL_ARCH_DIR)/UCW/
install -m 644 $(o)/ucw/perl/Ulimit/arch/auto/UCW/Ulimit/Ulimit.$(SOEXT) $(DESTDIR)$(INSTALL_PERL_ARCH_DIR)/auto/UCW/
.PHONY: install-perl-ucw-ulimit