aboutsummaryrefslogtreecommitdiff
path: root/externals/Makefile
diff options
context:
space:
mode:
authorHans-Christoph Steiner <eighthave@users.sourceforge.net>2010-02-21 05:08:54 +0000
committerHans-Christoph Steiner <eighthave@users.sourceforge.net>2010-02-21 05:08:54 +0000
commitfd84554bcc90d9f3d1be7702866143ef75e886f0 (patch)
tree7ebefb90704e9f62e64cc3a519dce5110b1262f3 /externals/Makefile
parent8ce72fb17ae4c905fdd692ffc0c252f80e482ff8 (diff)
ported to new template Makefile and debianized it
svn path=/trunk/; revision=13184
Diffstat (limited to 'externals/Makefile')
-rw-r--r--externals/Makefile36
1 files changed, 7 insertions, 29 deletions
diff --git a/externals/Makefile b/externals/Makefile
index 715d18c9..6b6ceebc 100644
--- a/externals/Makefile
+++ b/externals/Makefile
@@ -1595,39 +1595,17 @@ moocow_clean:
-rm -f -- $(MOOCOW_DIR)/*.*~
+
#------------------------------------------------------------------------------#
# MOONLIB
-MOONLIB_NAME=moonlib
-MOONLIB_OBJECTS := $(wildcard $(externals_src)/moonlib/*.c)
-moonlib: $(MOONLIB_OBJECTS:.c=.$(EXTENSION))
-
-moonlib_install: moonlib
- install -d $(DESTDIR)$(objectsdir)/$(MOONLIB_NAME)
- $(scripts_src)/generate-libdir-metafile.sh $(DESTDIR)$(objectsdir) $(MOONLIB_NAME) \
- --author "Antoine Rousseau" \
- --version "0.2"
- install -p $(MOONLIB_OBJECTS:.c=.$(EXTENSION)) $(DESTDIR)$(objectsdir)/$(MOONLIB_NAME)
- install -d $(DESTDIR)$(helpdir)/$(MOONLIB_NAME)
- install -p $(externals_src)/moonlib/help/*.pd $(DESTDIR)$(objectsdir)/$(MOONLIB_NAME)
- install -p $(externals_src)/moonlib/help/*.pd $(DESTDIR)$(helpdir)/$(MOONLIB_NAME)
- install -p $(externals_src)/moonlib/help/*.gif $(DESTDIR)$(helpdir)/$(MOONLIB_NAME)
- install -d $(DESTDIR)$(helpdir)/$(MOONLIB_NAME)/d
- install -p $(externals_src)/moonlib/help/d/*.gif $(DESTDIR)$(helpdir)/$(MOONLIB_NAME)/d
-# install -d $(DESTDIR)$(manualsdir)/$(MOONLIB_NAME)
-# install -p $(externals_src)/moonlib/manual.txt \
-# $(DESTDIR)$(manualsdir)/$(MOONLIB_NAME)
- install -d $(DESTDIR)$(readmesdir)
- install -p $(externals_src)/moonlib/README.txt \
- $(DESTDIR)$(readmesdir)/$(MOONLIB_NAME).txt
-# install -d $(DESTDIR)$(examplesdir)/$(MOONLIB_NAME)
-# install -p $(externals_src)/moonlib/examples/*.pd \
-# $(DESTDIR)$(examplesdir)/$(MOONLIB_NAME)
+moonlib:
+ make -C $(externals_src)/moonlib
+
+moonlib_install:
+ make -C $(externals_src)/moonlib DESTDIR="$(DESTDIR)" objectsdir="$(objectsdir)" install
moonlib_clean:
- -rm -f -- $(MOONLIB_OBJECTS:.c=.$(EXTENSION))
- -rm -f -- $(MOONLIB_OBJECTS:.c=.o)
- -rm -f -- $(externals_src)/moonlib/*.bak
- -rm -f -- $(externals_src)/moonlib/*.*~
+ make -C $(externals_src)/moonlib clean