Makefile.am (1672B)
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,@alsactlhome\@,$(ALSACTL_HOME_DIR),g' \ 44 -e 's,@daemonswitch\@,$(ALSACTL_DAEMONSWITCH),g' \ 45 < $< > $@ || rm $@ 46 47 alsa-state.service: alsa-state.service.in 48 $(edit) 49 50 alsa-restore.service: alsa-restore.service.in 51 $(edit) 52 53 90-alsa-restore.rules: 90-alsa-restore.rules.in 54 $(edit) 55 56 EXTRA_DIST += \ 57 alsa-state.service.in \ 58 alsa-restore.service.in \ 59 90-alsa-restore.rules.in 60 61 CLEANFILES = \ 62 alsa-state.service \ 63 alsa-restore.service \ 64 90-alsa-restore.rules 65 66 %.7: %.xml 67 xmlto man $?