Browse Source

Added symlink on install

Quentin Bonaventure 7 years ago
parent
commit
8d68809694
3 changed files with 6 additions and 1 deletions
  1. 2
    1
      Makefile.am
  2. 1
    0
      configure.ac
  3. 3
    0
      lodel/plugins/Makefile.am

+ 2
- 1
Makefile.am View File

@@ -37,7 +37,8 @@ install-data-hook:
37 37
 
38 38
 #Making debian package
39 39
 deb: dist
40
-	mkdir debian_package; tar -xvf ${PACKAGE}-${VERSION}.tar.gz -C ./debian_package; cd debian_package/${PACKAGE}-${VERSION}; dpkg-buildpackage -rfakeroot;
40
+	
41
+	mkdir debian_package; tar -xvf ${PACKAGE}-${VERSION}.tar.gz -C ./debian_package; cd debian_package/${PACKAGE}-${VERSION}; echo "$(pkgpythondir)/plugins $(sysconfdir)/lodel2/plugins" > debian/lodel2.links; dpkg-buildpackage -rfakeroot;
41 42
 
42 43
 # Test em update ( examples/em_test.pickle )
43 44
 em_test: em_test.py

+ 1
- 0
configure.ac View File

@@ -25,6 +25,7 @@ AC_CONFIG_FILES([Makefile \
25 25
 #
26 26
 #pyconfigure macros are prefixed by PC_
27 27
 ###
28
+AC_PROG_LN_S
28 29
 m4_include([m4/python.m4]) # Patched version of aclocal python.m4 file
29 30
 m4_include([m4/python_pyconfigure.m4]) #Renamed because we use a patched version of aclocal python.m4 file
30 31
 m4_define(python_min_ver, 3.4.2)

+ 3
- 0
lodel/plugins/Makefile.am View File

@@ -1,9 +1,12 @@
1 1
 plugins_PYTHON=__init__.py
2 2
 
3 3
 pluginsdir=$(pkgpythondir)/plugins
4
+lodel2confdir=$(sysconfdir)/lodel2
4 5
 
5 6
 install-data-local:
6 7
 	mkdir ${DESTDIR}$(pluginsdir); cp -R * ${DESTDIR}$(pluginsdir) && rm ${DESTDIR}$(pluginsdir)/Makefile*
8
+	mkdir -p $(lodel2confdir) && cd $(lodel2confdir) && $(LN_S) -sf $(pluginsdir) plugins
7 9
 
8 10
 uninstall-hook:
9 11
 	-rm -R ${DESTDIR}$(pluginsdir)
12
+	-rm -R $(lodel2confdir)

Loading…
Cancel
Save