diff options
author | Andrew Cady <d@jerkface.net> | 2021-03-13 19:47:56 -0500 |
---|---|---|
committer | Andrew Cady <d@jerkface.net> | 2021-03-13 19:47:56 -0500 |
commit | 5e67c4de53dfb62b6094cd474cc255886e8ef59c (patch) | |
tree | b11a561e790e0de4e32956d72ae172e5a76d0ba4 | |
parent | 6b7ede79c6611392ae7c30d51eaa259562d3e0e5 (diff) |
Makefile: improve core command-line interface targets
-rw-r--r-- | Makefile | 46 |
1 files changed, 23 insertions, 23 deletions
@@ -167,11 +167,6 @@ FORCE: | |||
167 | $(btrfs_images): FORCE | 167 | $(btrfs_images): FORCE |
168 | $(MAKE) -C rootfs $(notdir $@) | 168 | $(MAKE) -C rootfs $(notdir $@) |
169 | 169 | ||
170 | .PHONY: usb key emu | ||
171 | usb emu: rootfs | ||
172 | usb key emu: | ||
173 | make -C partitions $@ | ||
174 | |||
175 | boot: rootfs | 170 | boot: rootfs |
176 | sudo ./src/mkinitramfs-samizdat | 171 | sudo ./src/mkinitramfs-samizdat |
177 | sudo ROOTFS=rootfs/$(rootfs) ./src/parted-usb.sh | 172 | sudo ROOTFS=rootfs/$(rootfs) ./src/parted-usb.sh |
@@ -350,26 +345,31 @@ install-stamp: install-bin-programs samizdat-paths.sh ${compiled_programs} | |||
350 | bootclean: | 345 | bootclean: |
351 | rm -f samizdat.disk.img boot-disk.template.img boot-disk.img | 346 | rm -f samizdat.disk.img boot-disk.template.img boot-disk.img |
352 | 347 | ||
353 | upgrade: | 348 | .PHONY: update upgrade up upgrade-key initrd |
354 | make install-submodules | ||
355 | make install | ||
356 | ./src/mkinitramfs-samizdat | ||
357 | make -C partitions key | ||
358 | 349 | ||
359 | testinitrdkey: | 350 | initrd: install |
360 | make install | ||
361 | ./src/mkinitramfs-samizdat | 351 | ./src/mkinitramfs-samizdat |
362 | make -C partitions clean keymu | ||
363 | 352 | ||
364 | testinitrd: | 353 | update: apt-get-update-stamp |
365 | make install | 354 | git pull --ff-only --recurse-submodules |
366 | ./src/mkinitramfs-samizdat | ||
367 | make -C partitions clean emu | ||
368 | 355 | ||
369 | total-destroy: | 356 | upgrade: install-submodules install initrd |
370 | make -C partitions total-destroy | ||
371 | 357 | ||
372 | testinitrd: | 358 | upgrade-key: upgrade key |
373 | make install | 359 | |
374 | ./src/mkinitramfs-samizdat | 360 | up: update upgrade |
375 | make -C partitions clean emu | 361 | |
362 | .PHONY: usb key emu testinitrdkey testinitrd total-destroy persist | ||
363 | |||
364 | persist: | partitions/persist.img | ||
365 | partitions/persist.img: | ||
366 | make -C partitions $(notdir $@) | ||
367 | |||
368 | usb emu: initrd rootfs | ||
369 | key keymu emu-key: initrd | ||
370 | |||
371 | usb emu key keymu emu-key total-destroy: | ||
372 | make -C partitions clean $@ | ||
373 | |||
374 | testinitrdkey: keymu | ||
375 | testinitrd: emu | ||