summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2007-06-07 21:11:56 +0000
committerThierry Vignaud <tv@mandriva.org>2007-06-07 21:11:56 +0000
commit9e2f460998c85976f00f6f5d75a0098155ba196c (patch)
tree650689ebf9b24c42fda353bbaed40bc93a6f4ad6 /Makefile
parent8f3f6121feee52bed602842f953df78d3c30135a (diff)
downloaddrak3d-9e2f460998c85976f00f6f5d75a0098155ba196c.tar
drak3d-9e2f460998c85976f00f6f5d75a0098155ba196c.tar.gz
drak3d-9e2f460998c85976f00f6f5d75a0098155ba196c.tar.bz2
drak3d-9e2f460998c85976f00f6f5d75a0098155ba196c.tar.xz
drak3d-9e2f460998c85976f00f6f5d75a0098155ba196c.zip
reimport from latest checkout
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile48
1 files changed, 48 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..083acf9
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,48 @@
+NAME = drak3d
+VERSION = 1.2
+
+DESTDIR=
+libdir=/usr/lib
+bindir=/usr/bin
+sbindir=/usr/sbin
+desktopdir=/usr/share/applications
+autostartdir=/usr/share/autostart
+xinitdir=/etc/X11/xinit.d
+iconsdir=/usr/lib/libDrakX/icons
+pixmapsdir=/usr/share/libDrakX/pixmaps
+
+BIN_TOOLS=
+SBIN_TOOLS=drak3d
+
+all:
+ (find lib -name '*.pm'; find bin -type f) | xargs perl -pi -e 's/\s*use\s+(diagnostics|vars|strict).*//g'
+ make -C po
+
+check:
+ @for p in `find lib -name *.pm`; do perl -cw -I$(libdir)/libDrakX $$p || exit 1; done
+ @for p in bin/*; do perl -cw $$p || exit 1; done
+
+install:
+ install -d $(DESTDIR){$(libdir),$(bindir),$(sbindir),$(desktopdir),$(autostartdir),$(xinitdir),$(iconsdir),$(pixmapsdir)}
+ cp -a lib/* $(DESTDIR)$(libdir)/libDrakX/
+ (cd bin; \
+ [[ -n "$(BIN_TOOLS)" ]] && install -m755 $(BIN_TOOLS) $(DESTDIR)$(bindir); \
+ install -m755 $(SBIN_TOOLS) $(DESTDIR)$(sbindir); \
+ )
+ #install -m644 $(wildcard data/*.desktop) $(DESTDIR)$(desktopdir)
+ install -m644 $(wildcard data/icons/*.png) $(DESTDIR)$(iconsdir)
+ #install -m644 $(wildcard data/pixmaps/*.png) $(DESTDIR)$(pixmapsdir)
+ #perl -pe 's/\s+--force//g' $(DESTDIR)$(desktopdir)/net_applet.desktop > $(DESTDIR)$(autostartdir)/net_applet.desktop
+ make -C po install
+
+clean:
+ make -C po clean
+
+dis:
+ rm -rf $(NAME)-$(VERSION) ../$(NAME)-$(VERSION).tar*
+ mkdir -p $(NAME)-$(VERSION)
+ find . -not -name "$(NAME)-$(VERSION)"|cpio -pld $(NAME)-$(VERSION)/
+ find $(NAME)-$(VERSION) -type d -name .svn -o -name .cvsignore |xargs rm -rf
+ tar cf ../$(NAME)-$(VERSION).tar $(NAME)-$(VERSION)
+ bzip2 -9f ../$(NAME)-$(VERSION).tar
+ rm -rf $(NAME)-$(VERSION)