[vhffs-dev] [svn] commit: r186 - /trunk/Makefile

[ Thread Index | Date Index | More vhffs.org/vhffs-dev Archives ]


Author: soda
Date: Wed Apr 19 03:04:53 2006
New Revision: 186

Log:
Makefile is now fully-functionnal - VHFFS can be installed easyly on most *NIX systems


Modified:
    trunk/Makefile

Modified: trunk/Makefile
==============================================================================
--- trunk/Makefile (original)
+++ trunk/Makefile Wed Apr 19 03:04:53 2006
@@ -1,6 +1,6 @@
 #!/usr/bin/make
 
-APIDIR=$(DESTDIR)/usr/share/perl5/Vhffs/
+APIDIR=$(DESTDIR)/usr/share/vhffs/
 PANELDIR=$(DESTDIR)/usr/share/vhffs/panel/
 TEMPLATESDIR=$(DESTDIR)/usr/share/vhffs/templates/
 DOCDIR=$(DESTDIR)/usr/share/doc/vhffs/
@@ -19,9 +19,11 @@
 
 all: help
 
-install: install-api install-panel install-listengine install-tools install-intl install-conf install-backend install-doc install-bots install-shell
+install: install-api install-panel install-listengine install-tools install-intl install-conf install-backend install-doc install-bots install-shell link-api
 
 install-debian: debian-deps install
+
+
 
 check: test-deps
 
@@ -56,6 +58,19 @@
 
 install-shell: build-shell add-shell
 
+link-api:
+	echo " \
+	if( -f \"/etc/debian_version\" ) \
+	{ \
+		\$$link=\"$(DESTDIR)/usr/share/perl5/Vhffs\" ; \
+	} \
+	else \
+	{ \
+	    \$$link=\"$(DESTDIR)\".\$$INC[0] . \"/Vhffs\"; \
+	} \
+	unlink( \$$link ) if( -f \$$link ); \
+	symlink( \"$(DESTDIR)/usr/share/vhffs/api\" , \$$link ); print \"Link API with \$$link\n\";"| perl
+		
 build-shell:
 	install -d -m 755 $(SHELLDIR)
 	gcc -Wall -pedantic -o $(SHELLDIR)/tuxshell vhffs-shells/tuxshell.c




Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/