summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorAndrew Cady <d@jerkface.net>2021-03-13 19:47:56 -0500
committerAndrew Cady <d@jerkface.net>2021-03-13 19:47:56 -0500
commit5e67c4de53dfb62b6094cd474cc255886e8ef59c (patch)
treeb11a561e790e0de4e32956d72ae172e5a76d0ba4 /Makefile
parent6b7ede79c6611392ae7c30d51eaa259562d3e0e5 (diff)
Makefile: improve core command-line interface targets
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile46
1 files changed, 23 insertions, 23 deletions
diff --git a/Makefile b/Makefile
index 5c18e27..30e621d 100644
--- a/Makefile
+++ b/Makefile
@@ -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
171usb emu: rootfs
172usb key emu:
173 make -C partitions $@
174
175boot: rootfs 170boot: 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}
350bootclean: 345bootclean:
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
353upgrade: 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
359testinitrdkey: 350initrd: install
360 make install
361 ./src/mkinitramfs-samizdat 351 ./src/mkinitramfs-samizdat
362 make -C partitions clean keymu
363 352
364testinitrd: 353update: 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
369total-destroy: 356upgrade: install-submodules install initrd
370 make -C partitions total-destroy
371 357
372testinitrd: 358upgrade-key: upgrade key
373 make install 359
374 ./src/mkinitramfs-samizdat 360up: update upgrade
375 make -C partitions clean emu 361
362.PHONY: usb key emu testinitrdkey testinitrd total-destroy persist
363
364persist: | partitions/persist.img
365partitions/persist.img:
366 make -C partitions $(notdir $@)
367
368usb emu: initrd rootfs
369key keymu emu-key: initrd
370
371usb emu key keymu emu-key total-destroy:
372 make -C partitions clean $@
373
374testinitrdkey: keymu
375testinitrd: emu