|
| 1 | +X11LDFLAGS=-L/usr/X11R6/lib -lX11 |
| 2 | + |
| 3 | +GLOBALFILES=\ |
| 4 | +a2xcf \ |
| 5 | +apt-list-contents \ |
| 6 | +apt-build \ |
| 7 | +audioreset \ |
| 8 | +blackscrn.pl \ |
| 9 | +cdburn \ |
| 10 | +cdburn-rr \ |
| 11 | +dvdburn \ |
| 12 | +dvdburn-rr \ |
| 13 | +dvdvideoburn \ |
| 14 | +cdcopy.sh \ |
| 15 | +cdcopy_onthefly.sh \ |
| 16 | +cddaenc.sh \ |
| 17 | +cddamv.pl \ |
| 18 | +cddarip.sh \ |
| 19 | +cdda-cddbrip \ |
| 20 | +cdisoburn \ |
| 21 | +create-index-htmls \ |
| 22 | +cutv \ |
| 23 | +deb-import-signing-key \ |
| 24 | +emacs_or_fallback.sh \ |
| 25 | +gtetrinet-configure-keyboard \ |
| 26 | +gtetrinet-unconfigure-keyboard \ |
| 27 | +gnuplot-and-wait \ |
| 28 | +gnuplot-eps \ |
| 29 | +gnuplot-eps-and-wait \ |
| 30 | +gnuplot-png \ |
| 31 | +jolietrename \ |
| 32 | +jolietrenamecurrdir \ |
| 33 | +jolietnamecheckcurrdir \ |
| 34 | +chk4rlogins \ |
| 35 | +chr \ |
| 36 | +chrcodes \ |
| 37 | +cpmydir.sh \ |
| 38 | +cvs-add-subtree-dirs \ |
| 39 | +cvs-add-subtree-files \ |
| 40 | +cvs-isstssh \ |
| 41 | +cvs-myissthostssh \ |
| 42 | +cvslog2kwsubst \ |
| 43 | +cvsshowunkn.pl \ |
| 44 | +deb-fetch-uris \ |
| 45 | +deb-list-pkgs \ |
| 46 | +deb-xtract-uris \ |
| 47 | +disk2file.sh \ |
| 48 | +dos2unixm.sh \ |
| 49 | +e \ |
| 50 | +eardiff.sh \ |
| 51 | +edit-encrypted \ |
| 52 | +eol2nul \ |
| 53 | +execlogged \ |
| 54 | +ExecuteQuery \ |
| 55 | +fetchheise-fetcharticles \ |
| 56 | +fetchheise-idxpage-fetchallarticles \ |
| 57 | +fetchheise-idxpage-idxpageurls \ |
| 58 | +fetchheise-idxpage-all-articleurls \ |
| 59 | +fetchheise-idxpages-articleurls \ |
| 60 | +fetchmail-setup-tunnel.sh \ |
| 61 | +firefox-print-stacktraces \ |
| 62 | +firefox-print-stacktraces.gdbscript \ |
| 63 | +mail.cs.tu-berlin.de.cert \ |
| 64 | +fetchmail-shutdown-tunnel.sh \ |
| 65 | +ff \ |
| 66 | +file2disk.sh \ |
| 67 | +fsumup \ |
| 68 | +fullpath \ |
| 69 | +gal2nsbm.py \ |
| 70 | +generate-site-specific-filenames \ |
| 71 | +getcdrdev \ |
| 72 | +getdvdrdev \ |
| 73 | +getpid \ |
| 74 | +gianasis \ |
| 75 | +grepre \ |
| 76 | +grep_instfiles \ |
| 77 | +ifaceaddr \ |
| 78 | +imagej \ |
| 79 | +install-javaplugin \ |
| 80 | +instfilelist.pl \ |
| 81 | +ip6to4 \ |
| 82 | +irexec.pl \ |
| 83 | +iriver2m3ufile.pl \ |
| 84 | +kill-flashplugin \ |
| 85 | +kill-vpn.sh \ |
| 86 | +locateme \ |
| 87 | +libusers \ |
| 88 | +linehist \ |
| 89 | +listexecs \ |
| 90 | +lnum.sh \ |
| 91 | +log-transferrate \ |
| 92 | +make-my_configure_help \ |
| 93 | +m3u2iriver.pl \ |
| 94 | +m3u2iriverfile.pl \ |
| 95 | +m3uxmms2unx \ |
| 96 | +maestro \ |
| 97 | +memeaters.pl \ |
| 98 | +memeaters1.pl \ |
| 99 | +memusage \ |
| 100 | +memusage_for_pid_by_lib \ |
| 101 | +memusage-log-for-pid \ |
| 102 | +memusage-snapshot \ |
| 103 | +mlnet-disksize-watchdog \ |
| 104 | +mouseclick \ |
| 105 | +mplayerctl \ |
| 106 | +mplayer-ctlable \ |
| 107 | +mplayer-dump-latest \ |
| 108 | +mygdb \ |
| 109 | +myhexdump \ |
| 110 | +palm-fetchheise \ |
| 111 | +pidof \ |
| 112 | +pslibs.pl \ |
| 113 | +quotelines \ |
| 114 | +rfcidx.pl \ |
| 115 | +rminst \ |
| 116 | +run-if-not-running.sh \ |
| 117 | +scp-myissthost \ |
| 118 | +sensible-browser \ |
| 119 | +settimefromntp \ |
| 120 | +showhomeip \ |
| 121 | +show-encrypted \ |
| 122 | +sleepingsongs \ |
| 123 | +slowdown.pl \ |
| 124 | +sumsizes \ |
| 125 | +sumup \ |
| 126 | +syncmp3s \ |
| 127 | +thermal-snapshot \ |
| 128 | +timedrun.sh \ |
| 129 | +timelogger.pl \ |
| 130 | +unique-lines \ |
| 131 | +unpacksrcrpm.sh \ |
| 132 | +unzip2d \ |
| 133 | +update_cookiestxts \ |
| 134 | +vcr-chilitv \ |
| 135 | +vcr-daily \ |
| 136 | +videnc \ |
| 137 | +videnc.sh \ |
| 138 | +wait4time \ |
| 139 | +wgetheise.sh \ |
| 140 | +wget-completepage \ |
| 141 | +wget-withbrowsersettings \ |
| 142 | +xmms2iriver \ |
| 143 | +zipdir.sh \ |
| 144 | +stopwatch \ |
| 145 | +showargs \ |
| 146 | +jython2bsh \ |
| 147 | +mountdata \ |
| 148 | +umountdata \ |
| 149 | +freemind \ |
| 150 | +export-sawfish \ |
| 151 | +perl-e-perline \ |
| 152 | +perl-e-perline-inplace \ |
| 153 | +psfindbywd \ |
| 154 | +rspeedway \ |
| 155 | +ruby-e-perline \ |
| 156 | +show-spurious-listeners \ |
| 157 | +spurious-listeners-watchdog \ |
| 158 | +svnshowunkn \ |
| 159 | +tvbrowser \ |
| 160 | +wget-logging \ |
| 161 | +xless \ |
| 162 | +xmule-continuously \ |
| 163 | +xscreensaver-keepaway \ |
| 164 | +xterm-fullscreen \ |
| 165 | +xy+-plot \ |
| 166 | +xy+-average \ |
| 167 | +xypairs-derive \ |
| 168 | +xypairs-average \ |
| 169 | +y+-plot \ |
| 170 | +youtubedown \ |
| 171 | +myhomedesktop/emacs_or_fallback.sh \ |
| 172 | +make-misc \ |
| 173 | +misc.make \ |
| 174 | +lesscat \ |
| 175 | +strace-all |
| 176 | + |
| 177 | +#GLOBALTARGET=$(HOME)/bin |
| 178 | +GLOBALTARGET=/usr/local/bin |
| 179 | + |
| 180 | +GLOBALUSER=root |
| 181 | + |
| 182 | +SBINFILES=\ |
| 183 | +memusagelogd \ |
| 184 | +thermallogd \ |
| 185 | +run-ppp-over-ssh \ |
| 186 | +myissthost/run-isstsshvpn \ |
| 187 | +myissthost/run-isstsshvpn-continuously \ |
| 188 | +mysofdhost/run-sofdsshvpn \ |
| 189 | +mysofdhost/run-sofdsshvpn-continuously \ |
| 190 | +myhomehost/kill-vpn-continuously \ |
| 191 | +myhomehost/isstsshvpn-routes \ |
| 192 | +myhomehost/sofdsshvpn-routes \ |
| 193 | +myhomehost/setup-6to4 \ |
| 194 | +myhomehost/shutdown-6to4 \ |
| 195 | +myhomehost/wlan-scan \ |
| 196 | +myhomehost/wlan-switch-to-ap \ |
| 197 | +myhomehost/wlan-switch-to-sta \ |
| 198 | +myhomehost/wlan-restartap \ |
| 199 | +myissthost/setup-6to4 \ |
| 200 | +myissthost/shutdown-6to4 \ |
| 201 | +myhomedesktop/setup-6to4 \ |
| 202 | +myhomedesktop/shutdown-6to4 \ |
| 203 | +mylaptop/wlan-reinit |
| 204 | + |
| 205 | +SBINTARGET=/usr/local/sbin |
| 206 | + |
| 207 | +USERFILES=\ |
| 208 | +firefox-memusage-log-create.sh \ |
| 209 | +firefox-memusage-log-plot.sh \ |
| 210 | +irexec.pl \ |
| 211 | +ssh-forward-allisst \ |
| 212 | +ssh-forward-allisst-continuously \ |
| 213 | +ssh-forward-isstcvs \ |
| 214 | +ssh-forward-isstica \ |
| 215 | +ssh-forward-isstssh \ |
| 216 | +ssh-forward-isstwww \ |
| 217 | +ssh-forward-myissthostssh \ |
| 218 | +ssh-forwarded-isstssh \ |
| 219 | +ssh-forwarded-myissthost \ |
| 220 | +ssh-isstunixhost \ |
| 221 | +ssh-myissthost \ |
| 222 | +xmms.sh |
| 223 | + |
| 224 | +USERTARGET=$(HOME)/bin |
| 225 | + |
| 226 | +default: install |
| 227 | + |
| 228 | +install: install-global install-user |
| 229 | + |
| 230 | +TMP=/tmp/mkinstglobal-$(USER) |
| 231 | + |
| 232 | +include Makefile.conf |
| 233 | + |
| 234 | +# TODO: race condition? |
| 235 | +install-global: $(GLOBALFILES) |
| 236 | + mkdir -p $(GLOBALTARGET) |
| 237 | + mkdir -p $(SBINTARGET) |
| 238 | + rm -f $(TMP); umask 022; echo >$(TMP) |
| 239 | + $(foreach file,$(GLOBALFILES), echo mkdir -p '$(GLOBALTARGET)'/`dirname $(file)` >>$(TMP); \ |
| 240 | + echo install $(file) '$(GLOBALTARGET)'/`dirname $(file)` >>$(TMP);) |
| 241 | + $(foreach file,$(SBINFILES), echo mkdir -p '$(SBINTARGET)'/`dirname $(file)` >>$(TMP); \ |
| 242 | + echo install $(file) '$(SBINTARGET)'/`dirname $(file)` >>$(TMP);) |
| 243 | + su $(GLOBALUSER) $(TMP) |
| 244 | + rm -f $(TMP) |
| 245 | + |
| 246 | + |
| 247 | +install-user: $(USERFILES) |
| 248 | + mkdir -p $(USERTARGET) |
| 249 | + $(foreach file,$(USERFILES), mkdir -p '$(USERTARGET)'/`dirname $(file)`; \ |
| 250 | + install $(file) '$(USERTARGET)'/`dirname $(file)`;) |
| 251 | + |
| 252 | + |
| 253 | +mouseclick: mouseclick.c |
| 254 | + $(CC) $(CFLAGS) $(X11LDFLAGS) -o $@ $< |
0 commit comments