tarina

git clone https://git.tarina.org/tarina
Log | Files | Refs | README | LICENSE

Makefile.am (1622B)


      1 SUBDIRS = init
      2 
      3 sbin_PROGRAMS=alsactl
      4 man_MANS=alsactl.1
      5 if USE_XMLTO
      6 man_MANS += alsactl_init.7
      7 endif
      8 EXTRA_DIST=alsactl.1 alsactl_init.xml
      9 
     10 alsactl_SOURCES=alsactl.c state.c lock.c utils.c init_parse.c daemon.c \
     11                 monitor.c
     12 
     13 alsactl_CFLAGS=$(AM_CFLAGS) -D__USE_GNU \
     14                -DSYS_ASOUNDRC=\"$(ASOUND_STATE_DIR)/asound.state\" \
     15                -DSYS_LOCKFILE=\"$(ASOUND_LOCK_DIR)/asound.state.lock\" \
     16                -DSYS_PIDFILE=\"$(ALSACTL_PIDFILE_DIR)/alsactl.pid\"
     17 
     18 noinst_HEADERS=alsactl.h list.h init_sysdeps.c init_utils_string.c \
     19                init_utils_run.c init_sysfs.c
     20 
     21 udevrules_DATA = \
     22 	90-alsa-restore.rules
     23 
     24 if HAVE_SYSTEMD
     25 
     26 systemdsystemunit_DATA = \
     27 	alsa-state.service \
     28 	alsa-restore.service
     29 
     30 install-data-hook:
     31 	$(MKDIR_P) -m 0755 \
     32 		$(DESTDIR)$(systemdsystemunitdir)/basic.target.wants
     33 	( cd $(DESTDIR)$(systemdsystemunitdir)/basic.target.wants && \
     34 		rm -f alsa-state.service alsa-restore.service && \
     35 		$(LN_S) ../alsa-state.service alsa-state.service && \
     36 		$(LN_S) ../alsa-restore.service alsa-restore.service)
     37 
     38 endif
     39 
     40 edit = \
     41 	$(SED) -r -e 's,@sbindir\@,$(sbindir),g' \
     42 		  -e 's,@mydatadir\@,$(mydatadir),g' \
     43 		  -e 's,@daemonswitch\@,$(ALSACTL_DAEMONSWITCH),g' \
     44 							< $< > $@ || rm $@
     45 
     46 alsa-state.service: alsa-state.service.in
     47 	$(edit)
     48 
     49 alsa-restore.service: alsa-restore.service.in
     50 	$(edit)
     51 
     52 90-alsa-restore.rules: 90-alsa-restore.rules.in
     53 	$(edit)
     54 
     55 EXTRA_DIST += \
     56 	alsa-state.service.in \
     57 	alsa-restore.service.in \
     58 	90-alsa-restore.rules.in
     59 
     60 CLEANFILES = \
     61 	alsa-state.service \
     62 	alsa-restore.service \
     63 	90-alsa-restore.rules
     64 
     65 %.7: %.xml
     66 	xmlto man $?