diff options
author | John Klug <john.klug@multitech.com> | 2017-03-21 18:22:48 -0500 |
---|---|---|
committer | John Klug <john.klug@multitech.com> | 2017-03-21 18:22:48 -0500 |
commit | d30f7e875f0c98848195cbe2c7770aadbfc15638 (patch) | |
tree | 1d735a835abb04cc145601b8c84ce403569c02ad /src/Makefile.am | |
parent | b9af40d286c0223fd0945eac4d97950fbf80dd45 (diff) | |
download | mts-id-eeprom-d30f7e875f0c98848195cbe2c7770aadbfc15638.tar.gz mts-id-eeprom-d30f7e875f0c98848195cbe2c7770aadbfc15638.tar.bz2 mts-id-eeprom-d30f7e875f0c98848195cbe2c7770aadbfc15638.zip |
Update paths and remove bad comment
Diffstat (limited to 'src/Makefile.am')
-rw-r--r-- | src/Makefile.am | 27 |
1 files changed, 23 insertions, 4 deletions
diff --git a/src/Makefile.am b/src/Makefile.am index bfeafff..12f084c 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -1,12 +1,31 @@ +## Process this file with automake to produce Makefile.in AUTOMAKE_OPTIONS = gnu AM_CFLAGS = -Wall -bin_PROGRAMS = mts-id-eeprom hashpwd +bin_PROGRAMS = mts-id-eeprom +sbin_PROGRAMS = mts-hashpwd +mts_hashpwd_SOURCES = hashpwd.cpp mts_id_eeprom_SOURCES = eeprom_main.c -hashpwd_SOURCES = hashpwd.cpp noinst_HEADERS = eeprom.h -hashpwd_LDADD = -lcrypto - +mts_hashpwd_LDADD = -lcrypto +sbin_SCRIPTS = ubpasswd.sh EXTRA_DIST = +SUFFIXES = .sh + +.sh: + $(shbin_verbose) cp $< $@.tmp + $(AM_V_at) chmod 0744 $@.tmp + $(AM_V_at) mv -f $@.tmp $@ + +# Since this is Yocto we just make it work by moving +# the sbin stuff to /sbin, and set permissions +# on the script for root. +install-exec-hook: + cd $(DESTDIR)$(sbindir) && mkdir ../../sbin && \ + mv ubpasswd.sh ../../sbin/mts-ubpasswd && \ + chmod 0744 ../../sbin/mts-ubpasswd + cd $(DESTDIR)$(sbindir) && \ + mv mts-hashpwd ../../sbin/mts-hashpwd + rmdir $(DESTDIR)$(sbindir) |